package z_exam;

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

/**
 * @Author: 海琳琦
 * @Date: 2022/4/7 19:28
 */
public class Test5 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        double[] month = new double[12];
        int count = 0;
        int n = 12;
        while (n-- > 0) {
            sc.next();
            sc.nextLine();
            String[] split = sc.nextLine().split(" ");
            double sum = 0.0;
            for (int i = 0; i < split.length; i++) {
                String[] split1 = split[i].split(":");
                double temp ;
                if (split1[1].charAt(0) == '+') {
                    temp = Double.valueOf(split1[1].substring(1));
                }else{
                    temp = Double.valueOf(split1[1]);
                }
                sum += temp;
            }
            month[count++] = sum;
        }
        Map<Integer, String> hash = new HashMap<>();
        hash.put(0, "January:");
        hash.put(1, "February:");
        hash.put(2, "March:");
        hash.put(3, "April:");
        hash.put(4, "May:");
        hash.put(5, "June:");
        hash.put(6, "July:");
        hash.put(7, "August:");
        hash.put(8, "September:");
        hash.put(9, "October:");
        hash.put(10, "November:");
        hash.put(11, "December:");
        for (int i = 0; i < month.length; i++) {
            StringBuilder result = new StringBuilder();
            result.append(hash.get(i));
            if (month[i] >= 0) {
                result.append("+");
            }
            result.append(String.format("%.2f", month[i]));
            System.out.println(result.toString());
        }
    }
}
